package com.wk.config;

import com.wk.bean.Breakdown;
import org.springframework.context.annotation.Bean;

//这个类统筹(管理)所有需要装载的类到ioc
//@Configuration
//管理bean包下所有的类，组件扫描
//@ComponentScan({"com.wk.bean"})
public class SpringBeanConfig {
    @Bean//约等于@Component//返回值类型的对象放到容器里面
    public Breakdown getBreakdown(){
        Breakdown bd =  new Breakdown();
        bd.setBreakdownId("1");
        return bd;
    }
}
